package com.zb.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.zb.annotation.NumberPattern;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @Author WEN
 * @Date 2024/1/6 0006
 **/
@Data
@ApiModel("仓库类型对象")
public class StoreTypeVo {
    @ApiModelProperty(value = "仓库类型ID，新增不必传，修改必传")
    private Long id;

    @NotNull(message = "类型不能为空")
    @NumberPattern(regexp = "[1|2]", required = true, message = "类型参数不合法")
    @ApiModelProperty(value = "类型：1-入库，2-出库", required = true, example = "2")
    private Integer type;

    @NotBlank(message = "类型名称不能为空")
    @Length(max = 20, message = "类型名称长度限制 20 个字符以内")
    @ApiModelProperty(value = "类型名称", required = true)
    private String name;

    @ApiModelProperty(value = "是默认为工单配件出库类型：false-否，true-是", example = "false")
    private Boolean outStoreOrderSpareType;

    @ApiModelProperty(value = "是默认为工单配件入库类型：false-否，true-是", example = "false")
    private Boolean inStoreOrderSpareType;

    @NotNull(message = "仓库类型状态不能为空")
    @ApiModelProperty(value = "仓库类型状态：false-启用，true-禁用", required = true, example = "false")
    private Boolean status;
}
